﻿using Microsoft.Extensions.DependencyInjection;
using System;



namespace Kernelx.Contexts.Configuration
{
    using Kernelx.Contexts.AspNetCoreImpls;
    public partial class AspNetCoreWorkloadContextOptions : WorkloadContextOptions
    {

        /// <summary>
        /// <inheritdoc/>
        /// </summary>
        public override IServiceCollection Services { get; protected set; }
        internal AspNetCoreWorkloadContextOptions(IServiceCollection services) => Services = services ?? throw new ArgumentNullException(nameof(services));
         
        protected override IWorkloadStartupContext Generate()=> new NetCoreWorkloadContext(this.DefaultCurrentUser);


    }
}
